package mylego

//
//import (
//	"crypto/tls"
//	"golang.org/x/crypto/acme/autocert"
//	"net/http"
//)
//
//// You'll need a user or account type that implements acme.User
////type MyUser struct {
////	Email        string
////	Registration *registration.Resource
////	key          crypto.PrivateKey
////}
//
////func (u *MyUser) GetEmail() string {
////	return u.Email
////}
////func (u MyUser) GetRegistration() *registration.Resource {
////	return u.Registration
////}
////func (u *MyUser) GetPrivateKey() crypto.PrivateKey {
////	return u.key
////}
//
//func main() {
//
//	m := autocert.Manager{
//		Cache:      autocert.DirCache("secret-dir"),
//		Prompt:     autocert.AcceptTOS,
//		HostPolicy: autocert.HostWhitelist("app.burgeonerp.cn"),
//	}
//	s := &http.Server{
//		Addr:      ":https",
//		TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
//	}
//	s.ListenAndServeTLS("", "")
//}
